<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改来源基本表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-baseinfo-edit" th:object="${sourceBaseInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">渠道编号：</label>
                <div class="col-sm-8">
                    <input name="channelCode" th:field="*{channelCode}" readonly class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">渠道名称：</label>
                <div class="col-sm-8">
                    <input name="channelName" th:field="*{channelName}" readonly class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">描述信息：</label>
                <div class="col-sm-8">
                    <input name="descInfo" th:field="*{descInfo}" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">流程类型：</label>
                <div class="col-sm-8">
                    <select name="flowType" th:field="*{flowType}" class="form-control">
                        <option th:each="item:${flowTypeList}" th:value="${item.value}" th:text="${item.name}" ></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">结算类型：</label>
                <div class="col-sm-8">
                    <select name="settleFlag" th:field="*{settleFlag}"  class="form-control">
                        <option th:each="item:${settleFlagList}" th:value="${item.value}" th:text="${item.name}" ></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label is-required">加密类型：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="encryptType"  th:field="*{encryptType}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">状态：</label>
                <div class="col-sm-8">
                    <select name="status" th:field="*{status}"  class="form-control">
                        <option value="1">可用</option>
                        <option value="0">不可用</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">推送标志：</label>
                <div class="col-sm-8">
                    <select name="pushFlag" th:field="*{pushFlag}"  class="form-control">
                        <option value="1">推送</option>
                        <option value="0">不推送</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">扩展数据：</label>
                <div class="col-sm-8">
                    <input name="extData"  th:field="*{extData}" class="form-control" type="text" required>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "source/baseinfo";
        $("#form-baseinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-baseinfo-edit').serialize());
            }
        }
    </script>
</body>
</html>